﻿<?php
include 'lanewechat.php';
$userinfo = \LaneWeChat\Core\Common::getCurrentUserInfo( 'report.php' );

$result = \LaneWeChat\Core\Common::getLogin( $userinfo['openid'] );
$list = \LaneWeChat\Core\Common::getReportList( $userinfo['openid'] , $result['sessionId'] , $result['VipId'] );
?>
<html>
<head>
    <title>报表查询</title>
    <style>
        h3{
            margin: 2em;
            text-align: center;
            font-size: 4em;
        }
        ul {
            margin-left:10px;
            margin-right:10px;
            margin-top:10px;
            padding: 0;
        }
        li {
            width: 47%;
            float: left;
            margin: 0px;
            margin-left:1%;
            padding: 0px;
            height: 100px;
            display: inline;
            line-height: 100px;
            color: #fff;
            font-size: 3em;
            word-break:break-all;
            word-wrap : break-word;
            margin-bottom: 10px;
        }
        a {
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            text-decoration:none;
            color:#fff;
        }
        a:link{
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            text-decoration:none;
            color:#fff;
        }
        a:visited{
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            text-decoration:none;
            color:#fff;
        }
        a:hover{
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            text-decoration:none;
            color:#fff;
        }
        a:active{
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            text-decoration:none;
            color:#fff;
        }
    </style>
    <script src="js/jquery.js"></script>
</head>
<body>
<h3>报表类别查询</h3>
<div align="center">
    <ul>
        <?php
        $colors = array(
            '#FF7F24',
            '#698B22',
            '#8B6914',
            '#CDCD00',
            '#CD3278',
            '#848484',
            '#8EE5EE',
        );
        foreach( $list['datatable'] as $obj ){
            ?><li style="background-color:<?php echo $colors[mt_rand(0,6)];?>">
            <a href="rechargeList.php?id=<?=$obj['Reportcode']?>&openid=<?=$userinfo['openid']?>"><?=$obj['Reportname']?></a></li><?php
        }
        ?>
    </ul>
</div>
</body>
</html>
